﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Proggy.Web.Cms.AppHelpers
{
    /// <summary>
    /// Helpers
    /// </summary>
    public class ProggyCmsHelpers
    {
        /// <summary>
        /// If true, can be used to "wait" before doing anything else
        /// </summary>
        public static bool StillUnloading
        {

            get
            {
                // check
                if (HttpContext.Current.Cache["StillUnloading"] != null)
                {
                    return (bool)HttpContext.Current.Cache["StillUnloading"];
                }
                else
                {
                    return false;
                }
            }
            set
            {
                HttpContext.Current.Cache["StillUnloading"] = value;
            }

        }
    }
}
